home *** CD-ROM | disk | FTP | other *** search
/ Power Programmierung 2 / Power-Programmierung CD 2 (Tewi)(1994).iso / gnu / djgpp / contrib / dvx / inc / x11 / xaw / scrollba.h < prev    next >
Encoding:
C/C++ Source or Header  |  1993-07-15  |  3.6 KB  |  104 lines

  1. /*
  2. * $XConsortium: Scrollbar.h,v 1.1 89/12/15 11:40:43 kit Exp $
  3. */
  4.  
  5.  
  6. /***********************************************************
  7. Copyright 1987, 1988 by Digital Equipment Corporation, Maynard, Massachusetts,
  8. and the Massachusetts Institute of Technology, Cambridge, Massachusetts.
  9.  
  10.                         All Rights Reserved
  11.  
  12. Permission to use, copy, modify, and distribute this software and its 
  13. documentation for any purpose and without fee is hereby granted, 
  14. provided that the above copyright notice appear in all copies and that
  15. both that copyright notice and this permission notice appear in 
  16. supporting documentation, and that the names of Digital or MIT not be
  17. used in advertising or publicity pertaining to distribution of the
  18. software without specific, written prior permission.  
  19.  
  20. DIGITAL DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING
  21. ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL
  22. DIGITAL BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR
  23. ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS,
  24. WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION,
  25. ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS
  26. SOFTWARE.
  27.  
  28. ******************************************************************/
  29.  
  30. #ifndef _Scrollbar_h
  31. #define _Scrollbar_h
  32.  
  33. /****************************************************************
  34.  *
  35.  * Scrollbar Widget
  36.  *
  37.  ****************************************************************/
  38.  
  39. #include <X11/Xmu/Converters.h>
  40.  
  41. /* Parameters:
  42.  
  43.  Name             Class        RepType        Default Value
  44.  ----             -----        -------        -------------
  45.  background         Background        Pixel        White
  46.  border             BorderColor    Pixel        Black
  47.  borderWidth         BorderWidth    Dimension    1
  48.  destroyCallback     Callback        Function        NULL
  49.  foreground         Color        Pixel        Black
  50.  height             Height        Dimension    length or thickness
  51.  jumpProc         Callback        Function    NULL
  52.  length             Length        Dimension    1
  53.  mappedWhenManaged   MappedWhenManaged    Boolean        True
  54.  orientation         Orientation    XtOrientation    XtorientVertical
  55.  reverseVideo         ReverseVideo    Boolean        False
  56.  scrollDCursor         Cursor        Cursor        XC_sb_down_arrow
  57.  scrollHCursor         Cursor        Cursor        XC_sb_h_double_arrow
  58.  scrollLCursor         Cursor        Cursor        XC_sb_left_arrow
  59.  scrollProc         Callback        Function    NULL
  60.  scrollRCursor         Cursor        Cursor        XC_sb_right_arrow
  61.  scrollUCursor         Cursor        Cursor        XC_sb_up_arrow
  62.  scrollVCursor         Cursor        Cursor        XC_sb_v_double_arrow
  63.  sensitive         Sensitive        Boolean        True
  64.  shown             Shown        float        0.0
  65.  thickness         Thickness        Dimension    14
  66.  thumb             Thumb        Pixmap        Grey
  67.  topOfThumb         TopOfThumb        float        0.0
  68.  width             Width        Dimension    thickness or length
  69.  x             Position        Position    0
  70.  y             Position        Position    0
  71.  
  72. */
  73.  
  74. /* 
  75.  * Most things we need are in StringDefs.h 
  76.  */
  77.  
  78. #define XtCMinimumThumb "MinimumThumb"
  79. #define XtCShown "Shown"
  80. #define XtCTopOfThumb "TopOfThumb"
  81.  
  82. #define XtNminimumThumb "minimumThumb"
  83. #define XtNtopOfThumb "topOfThumb"
  84.  
  85. typedef struct _ScrollbarRec      *ScrollbarWidget;
  86. typedef struct _ScrollbarClassRec *ScrollbarWidgetClass;
  87.  
  88. extern WidgetClass scrollbarWidgetClass;
  89.  
  90. extern void XawScrollbarSetThumb(); /* scrollBar, top, shown */
  91.     /* Widget scrollBar; */
  92.     /* float top, shown; */
  93.  
  94. #ifdef XAW_BC
  95. /*************************************************************
  96.  * For Compatibility only.                                   */
  97.  
  98. #define XtScrollBarSetThumb      XawScrollbarSetThumb
  99.  
  100. /*************************************************************/
  101. #endif /* XAW_BC */
  102.  
  103. #endif /* _Scrollbar_h */
  104.